# Matrix项目 - 可执行文件
project(Matrix)

get_source_list(SOURCE_LIST)
get_header_list(HEADER_LIST)

# 添加头文件目录
include_directories(include)
# 包含OSG头文件
include_directories(${OSG_INCLUDE_DIR})

# 创建可执行文件
add_executable(${PROJECT_NAME} ${SOURCE_LIST} ${HEADER_LIST})

target_link_libraries(
    Matrix 
    debug ${OSG_LIB_DIR_DEBUG}/osgd.lib
    debug ${OSG_LIB_DIR_DEBUG}/osgGAd.lib
    debug ${OSG_LIB_DIR_DEBUG}/osgDBd.lib
    debug ${OSG_LIB_DIR_DEBUG}/openThreadsd.lib
    debug ${OSG_LIB_DIR_DEBUG}/osgManipulatord.lib
    debug ${OSG_LIB_DIR_DEBUG}/osgViewerd.lib
    
    optimized ${OSG_LIB_DIR_DEBUG}/osg.lib
    optimized ${OSG_LIB_DIR_DEBUG}/osgGA.lib
    optimized ${OSG_LIB_DIR_DEBUG}/osgDB.lib
    optimized ${OSG_LIB_DIR_DEBUG}/openThreads.lib
    optimized ${OSG_LIB_DIR_DEBUG}/osgManipulator.lib
    optimized ${OSG_LIB_DIR_DEBUG}/osgViewer.lib
)

create_file_structure(SOURCE_LIST HEADER_LIST)

add_project_to_folder(${PROJECT_NAME} "part1")
    